<?php
namespace backend\controllers;

use Yii;
use common\models\User;
use common\models\user\UserSearch;

/**
 * UserController implements the CRUD actions for User model.
 */
class UserController extends BaseController
{   
    /**
     * 用户信息
     */
    public function settings(){
        return array( "title" => Yii::t('app', 'User'),'pk' => 'id', 'model' => new User());
    }

    
    public function hook_before_index(){
        $params = $this->request->queryParams;
        return $params;
    }
    
    public function hook_after_index(){
        $searchModel = new UserSearch();
        return ['searchModel' => $searchModel];
    }
}
